<?php
namespace app\atxunda\controller;
use think\Controller;
use think\Db; 
use think\Request;
use app\atxunda\model\KnowUser;

class Index extends Common
{

	/**
	 * 后台首页
	 * @return [type] [description]
	 */
    public function index()
    {
        $data = \app\atxunda\model\Privilege::getLeftPri();
        $this->assign('data',$data);
        $user_data = KnowUser::count();
        $course_data = \app\index\model\Course::count();
        $this->assign('count',$user_data);
        $this->assign('course_count',$course_data);
        return $this->fetch('index');
    }

    /**
     * 主体
     * @return [type] [description]
     */
    public function info()
    {
        return $this->fetch('info');
    }
}
